<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>

<form:form commandName="model" cssClass="validate"
	action="db/entityField/save">
	<form:hidden path="id" />
	<form:hidden path="dbEntityId" />
	<table class=" form-table">
		<tbody>
			<tr>
				<td class="td1">名称：</td>
				<td class="td2"><form:input path="name" cssClass="required" />
				</td>
			</tr>
			<tr>
				<td class="td1">字段类型：</td>
				<td class="td2"><form:radiobutton path="fieldType"
						value="string" label="字符串" /> <form:radiobutton path="fieldType"
						value="number" label="数字" /> <form:radiobutton path="fieldType"
						value="date" label="日期" />
					<form:radiobutton path="fieldType" value="datetime" label="时间" />
				</td>
			</tr>
			<tr>
				<td class="td1">数据库列名：</td>
				<td class="td2"><form:input path="columnName"
						cssClass="required" />
				</td>
			</tr>
			<tr>
				<td class="td1">非空：</td>
				<td class="td2"><form:checkbox path="notnull" />
				</td>
			</tr>

			<tr>
				<td class="td1">唯一：</td>
				<td class="td2"><form:checkbox path="uniqueKey" />
				</td>
			</tr>
			<tr>
				<td class="td1">用于导入：</td>
				<td class="td2"　><form:checkbox path="useForImport" />
				</td>
			</tr>
			<tr>
				<td class="td1">长度：</td>
				<td class="td2"><form:input path="minLength" cssClass="number"
						cssStyle="width:70px" />到 <form:input path="maxLength"
						cssClass="number" cssStyle="width:70px" />
				</td>
			</tr>
			<tr>
				<td class="td1">sql定义：</td>
				<td class="td2"><form:input path="sqlStr" cssStyle="width:80%" />
				</td>
			</tr>
			<tr>
				<td class="td1">验证表达式：</td>
				<td class="td2"><form:input path="validateExp"
						cssStyle="width:80%" />
				</td>
			</tr>
			<tr>
				<td class="td1">验证说明：</td>
				<td class="td2"><form:input path="validateDesc"
						cssStyle="width:80%" />
				</td>
			</tr>
			<tr>
				<td class="td1">排序：</td>
				<td class="td2"><form:input path="orderNum" cssClass="number" />
				</td>
			</tr>
		</tbody>
	</table>
	<isperp:buttonList>
		<button class="submit"
			onclick="isperp.submitForm();return false;">
			<span class="icon icon-save"></span>提交
		</button>
	</isperp:buttonList>
</form:form>
